package com.example.zhiran.mapper;

import com.example.zhiran.pojo.orm.ZRCategory;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ZRCategoryMapper {
    //获得所有类别
    List<ZRCategory> getAllCategories();

    //增加一个类别
    int addCategory(ZRCategory resourceCategory);

    //修改类别（名字）
    int updateCategory(ZRCategory resourceCategory);

    //删除类别
    int deleteCategory(int ctyId);

}
